package com.xken.example.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.List;

@Data
@Document(indexName = "video")
public class Video implements Serializable {

    @Id
    private String id;

    private String name;

    @Field(analyzer = "whitespace", type = FieldType.Text)
    private String labels;

    private Integer num;

    private List<StoreTags> tags;
//    private List<String> tags;
}